Optimal. Leaf size=154 \[ -\frac{\sqrt{-b+i a} (A+i B) \tan ^{-1}\left (\frac{\sqrt{-b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}+\frac{\sqrt{b+i a} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.541165, antiderivative size = 154, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.171, Rules used = {3608, 3616, 3615, 93, 203, 206} \[ -\frac{\sqrt{-b+i a} (A+i B) \tan ^{-1}\left (\frac{\sqrt{-b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}+\frac{\sqrt{b+i a} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3608
Rule 3616
Rule 3615
Rule 93
Rule 203
Rule 206
Rubi steps
\begin{align*} \int \frac{\sqrt{a+b \tan (c+d x)} (A+B \tan (c+d x))}{\tan ^{\frac{3}{2}}(c+d x)} \, dx &=-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}}-2 \int \frac{\frac{1}{2} (-A b-a B)+\frac{1}{2} (a A-b B) \tan (c+d x)}{\sqrt{\tan (c+d x)} \sqrt{a+b \tan (c+d x)}} \, dx\\ &=-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}}-\frac{1}{2} ((i a-b) (A+i B)) \int \frac{1-i \tan (c+d x)}{\sqrt{\tan (c+d x)} \sqrt{a+b \tan (c+d x)}} \, dx-\left (\frac{1}{2} (-A b-a B)-\frac{1}{2} i (a A-b B)\right ) \int \frac{1+i \tan (c+d x)}{\sqrt{\tan (c+d x)} \sqrt{a+b \tan (c+d x)}} \, dx\\ &=-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}}+\frac{((i a+b) (A-i B)) \operatorname{Subst}\left (\int \frac{1}{(1-i x) \sqrt{x} \sqrt{a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}-\frac{((i a-b) (A+i B)) \operatorname{Subst}\left (\int \frac{1}{(1+i x) \sqrt{x} \sqrt{a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}}+\frac{((i a+b) (A-i B)) \operatorname{Subst}\left (\int \frac{1}{1-(i a+b) x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}-\frac{((i a-b) (A+i B)) \operatorname{Subst}\left (\int \frac{1}{1-(-i a+b) x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}\\ &=-\frac{\sqrt{i a-b} (A+i B) \tan ^{-1}\left (\frac{\sqrt{i a-b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}+\frac{\sqrt{i a+b} (A-i B) \tanh ^{-1}\left (\frac{\sqrt{i a+b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}-\frac{2 A \sqrt{a+b \tan (c+d x)}}{d \sqrt{\tan (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.534558, size = 168, normalized size = 1.09 \[ \frac{\sqrt [4]{-1} \sqrt{-a-i b} (A+i B) \tanh ^{-1}\left (\frac{\sqrt [4]{-1} \sqrt{-a-i b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )+\sqrt [4]{-1} \sqrt{a-i b} (A-i B) \tanh ^{-1}\left (\frac{\sqrt [4]{-1} \sqrt{a-i b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )-\frac{2 A \sqrt{a+b \tan (c+d x)}}{\sqrt{\tan (c+d x)}}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.74, size = 2178373, normalized size = 14145.3 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (A + B \tan{\left (c + d x \right )}\right ) \sqrt{a + b \tan{\left (c + d x \right )}}}{\tan ^{\frac{3}{2}}{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]